<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                template="layout_3.xhtml"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="content">
        <f:view>
            <h:form id="form">
 <rich:panel header="Zmiana hasła">
            <h:panelGrid columns="3">
                      <h:outputText value="Obecne hasło:"/>
                      <h:inputSecret value="#{zmienHaslo.pass_old}" id="login" style="width:200px;" validatorMessage="To pole jest wymagane.">
                         <f:validateLength minimum="0" />
                         <f:validateRequired />
                         <rich:validator />
                      </h:inputSecret>
                      <rich:message for="login" style="color:red"/>
                      <h:outputText value="Nowe hasło:"/>
                      <h:inputSecret value="#{zmienHaslo.pass1}" id="name" style="width:200px;" validatorMessage="To pole jest wymagane.">
                         <f:validateLength minimum="0" />
                         <f:validateRequired />
                         <rich:validator />
                      </h:inputSecret>
                      <rich:message for="name" style="color:red"/>
                      <h:outputText value="Powtórz nowe hasło:"/>
                      <h:inputSecret value="#{zmienHaslo.pass2}" id="surname" style="width:200px;" validatorMessage="To pole jest wymagane.">
                         <f:validateLength minimum="0" />
                         <f:validateRequired />
                         <rich:validator />
                      </h:inputSecret>
                      <rich:message for="surname" style="color:red"/>
                      <f:facet name="footer">
                          <h:commandButton value="Aktualizuj" style="width:100px;" action="#{zmienHaslo.change}"/>
                          <h:commandButton value="Wyczyść" type="reset" style="width:100px;"/>
                      </f:facet>
                  </h:panelGrid>
              </rich:panel>
                
            </h:form>
        </f:view>
    </ui:define>

</ui:composition>
